package day05;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/5 11:59
 */
public class MethodDemo {
    public static void main(String[] args) {
        say();
        say();
        say();
        String[]names={"张三","李四","王五","赵六"};
        for (int i=0; i<names.length; i++) {
            sayHi(names[i]);
        }
        int[]age={20,30,40,50,60,50};
//        sayHello("张三",age[]);
    }
    public static void say(){
        System.out.println("你真是个天才！天才第一步。");
    }
    public static void sayHi(String name){
        if (name=="王五"){
            return;
        }
        System.out.println("我是"+name+",我要开始说谎了");
    }
    public static void sayHello(String name,int age){
        if (age>=60){
            return;
        }
        System.out.println("我是"+name+",我今年"+age+"岁了");
    }
}
